.history-container {
  width: 100%;
  height: 100%;
  /* 半透明背景色 - 与cardList背景一致 */
  background-color: rgba(255, 255, 255, 0.2);
  
  /* 玻璃模糊效果 */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* Safari 浏览器兼容 */
  
  /* 添加边框增强效果 */
  border: 1px solid rgba(255, 255, 255, 0.18);
  
  /* 添加阴影增强深度感 */
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  
  border-radius: 5%;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.history-title {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  text-align: center;
}

.clear-btn {
  font-size: 10px;
  padding: 2px 5px;
  height: auto;
  line-height: 1;
}

.history-scroll {
  flex: 1;
  background-color: rgba(245, 245, 245, 0.3);
  border-radius: 5px;
  padding: 5px;
  overflow-y: auto;
}

.history-item {
  padding: 3px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  &:last-child {
    border-bottom: none;
  }
}

.history-text {
  font-size: 11px;
  color: #333;
  line-height: 1.4;
}

.history-empty {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.history-empty-text {
  font-size: 12px;
  color: #666;
}

// 响应式：小屏幕适配
@media (max-width: 480px) {
  .history-container {
    padding: 10px;
    border-radius: 10px;
  }
  
  .history-title {
    font-size: 12px;
  }
  
  .history-text {
    font-size: 10px;
  }
  
  .full-history-modal {
    padding: 10px;
    display: flex;
    flex-direction: column;
    
    .full-history-header {
      .full-history-title {
        font-size: 20px;
      }
    }
    
    .full-history-content {
      width: 90%;
      padding: 10px;
      
      .full-history-text {
        font-size: 12px;
      }
    }
    
    .full-history-buttons {
      width: 90%;
      flex-direction: column;
      
      .actionBtn {
        width: 100%;
        margin-bottom: 10px;
      }
    }
  }
}

// 完整记录弹窗样式 - 参考宝石盘弹窗样式
.full-history-modal {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  height: 100%;
  max-height: 80vh;
  padding: 20px;
  box-sizing: border-box;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 15px;
  // 添加硬件加速以减少闪烁
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

.full-history-header {
  text-align: center;
  margin-bottom: 20px;
  color: white;

  .full-history-title {
    font-size: 24px;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
  }
}

.full-history-content {
  display: flex;
  flex-direction: column;
  width: 80%;
  margin: 20px 10px;
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-height: 60vh;
  overflow-y: auto;
  margin-bottom: 20px;
  // 添加过渡效果
  transition: all 0.2s ease;
}

.full-history-item {
  padding: 5px 0;
  border-bottom: 1px solid #eee;
  &:last-child {
    border-bottom: none;
  }
}

.full-history-text {
  font-size: 13px;
  color: #333;
  line-height: 1.5;
}

.full-history-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  width: 30%;
  justify-content: center;
  
  .actionBtn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    // 添加硬件加速
    transform: translateZ(0);
    backface-visibility: hidden;

    &.closeBtn {
      background-color: #667eea;
      color: white;

      &:hover {
        background-color: #5a6fd8;
        transform: translateY(-2px) translateZ(0);
      }
    }
  }
}